<template>
	<view class="container">
		<view class="tui-page__hd">
			<view class="tui-page__title">tui-drag</view>
			<view class="tui-page__desc">拖拽排序，长按进行拖拽操作</view>
		</view>
		<view class="tui-page__bd tui-page__spacing">
			<tui-button type="gray-primary" :size="34" bold width="372rpx" height="84rpx" margin="0 auto 40rpx" @click="href(1)">设置columns</tui-button>
			<tui-button type="gray-primary" :size="34" bold width="372rpx" height="84rpx" margin="0 auto 40rpx" @click="href(2)">设置固定项</tui-button>
			<tui-button type="gray-primary" :size="34" bold width="372rpx" height="84rpx" margin="0 auto 40rpx" @click="href(3)">默认不可拖拽</tui-button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {
		href(type) {
			let page = '../drag-columns/drag-columns';
			if (type == 2) {
				page = '../drag-fixed/drag-fixed';
			} else if (type == 3) {
				page = '../drag-edit/drag-edit';
			}
			this.tui.href(page)
		}
	}
};
</script>

<style></style>
